Skip to content

NW | ITP-May-25 | Geraldine Edwards | Module-Data-Groups | Sprint-3 | Quote Generator App #586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Geraldine-Edwards
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with REGION | COHORT_NAME | FIRST_NAME LAST_NAME | PROJ_NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Add JS functionality and styling to Quote Generator App.

Questions

Ask any questions you have for your reviewer.

…on page load, then generate a new random quote when button is clicked
@Geraldine-Edwards Geraldine-Edwards added the Needs Review Participant to add when requesting review label Jul 11, 2025
@Geraldine-Edwards
Copy link
Author

Hi @ednut, thank you for reviewing my PR. :) Can you kindly change the label to "complete" if you are satisfied with my code please? (I am happy to have any feedback too, if you feel there are any tweaks I need to make?)
I will then be able to submit this code to the submission portal.

Thanks again!

@CameronDowner CameronDowner added Complete Volunteer to add when work is complete and review comments have been addressed and removed Needs Review Participant to add when requesting review labels Jul 14, 2025
@illicitonion
Copy link
Member

Hi @ednut - I'm not sure you're signed up as a volunteer at CodeYourFuture at the moment - if you are, can you drop me a DM on Slack? (I'm Daniel Wagner-Hall) to update our records and get you set up? Thank you!

Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is generally looking good, but I've left a couple of things to think about :)

@@ -491,3 +517,4 @@ const quotes = [
];

// call pickFromArray with the quotes array to check you get a random quote
const randomQuote = pickFromArray(quotes);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this variable do, and how is it used? What would break if you removed it?

Comment on lines +18 to +19
document.querySelector("#quote").innerText = randomQuote.quote;
document.querySelector("#author").innerText = randomQuote.author;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "set both elements to show the quote details" behaviour is repeated twice in your app - if we needed to change it in the future, we'd need to change both locations. Can you think of a way to avoid this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Volunteer to add when work is complete and review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants